/*
A. Maximum GCD
cf_20_6_20_1370A
*/ 
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
	int t,n;
	scanf("%d",&t);
	while(t--)
	{
		scanf("%d",&n);
		if(n%2==0) cout<<n/2<<endl;
		else cout<<(n-1)/2<<endl;
	}
}
 
